<?php

cons('PATTERN_ACTION', '/^(C|D|U)$/');
cons('PATTERN_BOOLEAN', '/^(0|1)$/');
cons('PATTERN_DATE', '/^[0-9]{1,4}-(?(?=1)1[0-2]|0{0,1}[0-9])-(?(?=3)3[0-1]|[0-2]{0,1}[0-9]{1})$/');
cons('PATTERN_DATE_TIME', '/^[0-9]{1,4}-[0-9]{1,2}-[0-9]{1,2} [0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2}$/');
cons('PATTERN_EMAIL', '/^[^0-9]?[A-z0-9\-_]+([.][A-z0-9\-_]+)*[@][A-z0-9\-_]+([.][A-z0-9\-_]+)*[.][A-z]{2,4}$/');
cons('PATTERN_INTEGER', '/^(-|\+)?[0-9]{1,11}$/');
cons('PATTERN_INTEGER_UNSIGNED', '/^\+?[0-9]{1,11}$/');
cons('PATTERN_LANGUAGE_ISO_CODE', '/^[a-z]{2,3}$/');
cons('PATTERN_REAL', '/^(-|\+)?[0-9]+(\.[0-9]+)?$/');
cons('PATTERN_REAL_UNSIGNED', '/^\+?[0-9]+(\.[0-9]+)?$/');
cons('PATTERN_REFERENCE', '/^[a-fA-F0-9]{1,16}$/');
cons('PATTERN_STRING_LONG', '/^.{1,255}$/');
cons('PATTERN_STRING_MEDIUM', '/^.{1,150}$/');
cons('PATTERN_STRING_SHORT', '/^.{1,50}$/');
cons('PATTERN_TEXT', '//');

?>
